package com.ny.service;

import com.ny.entity.User;
import java.util.List;

public interface UserService {
    List<User> findAllUser();
    User login(String username, String password);
    User findUserByUsername(String username);
    int registerUser(User user);
    void sendEmailCode(String email);
    User findUserByEmail(String email);
    int updatePasswordByEmail(String email, String password);
    boolean checkCode(String email, String code);
    int updateUserInfo(User user);
    int updatePassword(String username, String newPassword);
    User findUser(String username, String password);
}